import axios from "../../util/request";

//verifier下拉请求
export const verifiersel = () => {
    return axios.get(`/adminapi/merchant/store_list`);
};

//verifier列表
export const verifierlist = (val) => {
    return axios.get(`/adminapi/merchant/store_staff?page=${val.page}&limit=${val.limit}&store_id=${val.id}`);
};

///verifier开关设置
export const verifierswitch = (val) => {
    return axios.put(`/adminapi/merchant/store_staff/set_show/${val.id}/${val.status}`);
};

//varifier添加遮罩层数据
export const verifieraddMark = (val) => {
    return axios.get(`/adminapi/merchant/store_staff/create`);
};

//varifier头像列表
export const verifierTotal = (val) => {
    return axios.get(`/adminapi/app/wechat/kefu/create?page=${val.page}&limit=${val.limit}&data=${val.data}&nickname=${val.name}`);
};

//varifier数据添加
export const verifieradd = (val) => {
    return axios.post(`/adminapi/merchant/store_staff/save/0`,val);
};

//varifier数据删除
export const verifierdel = (val) => {
    return axios.delete(`/adminapi/merchant/store_staff/del/${val}`);
};

//varifier数据编辑
export const verifieredit = (val) => {
    return axios.get(`/adminapi/merchant/store_staff/${val}/edit`);
};
export const verifieredits = (val) => {
    return axios.get(`/adminapi/merchant/store_staff/save/${val}`);
};
export const verifiereditss = (val) => {
    return axios.post(`/adminapi/merchant/store_staff/save/${val.id}`,val);
};
